Repository navigation
feat(demo): one-click demo organization that tells the full loop story - #17
Merged
Merged
Conversation
Admin-only "Demo data" card in Settings (GET/POST/DELETE /api/demo) loads a fictional organization on the sandbox domain demo.test: 12 people, three campaigns over three months (report rate 25% -> 50% -> 75%, click rate 42% -> 8%, faster reports), remediation and retests for everyone who clicked, Inbox Triage results, risk profiles with authority as the weak spot, and an attack-surface map. - Deterministic: the same numbers on every load; reloading replaces it. - Removable: every record is tagged demo: True; clearing never touches real data. The admin's own map is only seeded when it is empty, and only the maps the demo seeded are removed (tracked in demo_state). - Demo people get a random, discarded password and cannot log in. - Load and clear are recorded in the audit log. Readiness: the headline report rate and the index now use the latest campaign (readiness now); the all-campaign aggregate stays as context. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An admin-only Demo data card in Settings loads a fictional organization so the whole product story is visible in one click — for a booth, a judge, or a first look.
What it seeds (org
org-demo, sandbox domaindemo.test):Safety
demo: True; clear removes exactly those, never real data. Map nodes are removed only for the workspaces the demo seeded (tracked indemo_state); an existing admin map is never overwritten.random.Random(42)), idempotent reload.demo.load/demo.clearrecorded in the hash-chained audit log.Readiness tweak — the headline report rate and the index now reflect the latest campaign (readiness now); the all-campaign aggregate is shown as context.
Test plan
pytest— 215 passed; newtests/test_demo.py: admin-only, story numbers via/api/readiness, idempotent reload, clear leaves real users/map, existing map not overwritten;test_readinessupdated for latest-campaign indexruff check/ruff format --checkCI=true craco build🤖 Generated with Claude Code